//
//  XFYVideoView.h
//  SDKSample
//
//  Created by 小肥羊 on 15/6/5.
//  Copyright (c) 2015年 Zhu‘s Game House. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Vitamio.h"
#import "SDImageView+SDWebCache.h"
#import "VSegmentSlider.h"
#import <AVFoundation/AVFoundation.h>
#import "Utilities.h"

@class XFYVideoView;

@protocol XFYVideoViewDelegate <NSObject>
@optional

- (void)showFullScreen:(XFYVideoView *)VideoView withIsFullSceen:(bool)IsFullSceen;

@end

@interface XFYVideoView : UIView <VMediaPlayerDelegate>

@property (nonatomic, strong) NSString *playUrl;    /**< 视频Url */

-(id)initWithFrame:(CGRect)frame WithPlayUrl:(NSString *)PlayUrl withImgUrl:(NSString *)ImgUrl;

#pragma 方法总结
/*! @brief 关闭视频 */
- (void)closePlay;
/*! @brief 播放视频 */
- (void)playVideo;

@end
